import { mapMutations } from 'vuex';

export default {
  watch: {
    '$fetchState.pending': {
      handler(val) {
        console.log(val);
        this.setPageLoading(val);
      },
      immediate: true
    }
  },
  methods: {
    ...mapMutations({
      setPageLoading: 'setPageLoading'
    })
  }
};
